package com.mecuros.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

import java.util.UUID;

/**
 * @Classname FeignAuthRequestInterceptor
 * @Description TODO
 * @Date 2022/2/9 10:56 下午
 * @Created by yujianbo
 */
public class FeignAuthRequestInterceptor implements RequestInterceptor {
    public void apply(RequestTemplate template) {
        // 业务认证
        String access_token = UUID.randomUUID().toString();
        template.header("Authorization",access_token);
    }
}
